#ifndef Exception_h
#define Exception_h


class Exception_T
{
public:
	DWORD Error;
	char Message[2048];

public:
	Exception_T(DWORD dwError, const char * szFormat, ...)
		:Error(dwError)
	{
		FillMemory(Message, sizeof(Message), 0);

		va_list args;
		va_start(args, szFormat);
		_vsnprintf(Message, sizeof(Message) - 1, szFormat, args);
		va_end(args);

		ODS(Message);
	}
};

#endif //Exception_h